package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 数据资源分配
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpDataResourceBind extends Model<JbdpDataResourceBind> {

    private static final long serialVersionUID=1L;

    /**
     * 数据资源ID
     */
    @TableId("DRB_ID")
    private String drbId;

    /**
     * ALL或* 所有系统
            XX  指定XX系统
            
     */
    @TableField("APP")
    private String app;

    /**
     * ALL或*=代表所有数据类型
            XX=代表某个数据类型ID
     */
    @TableField("DATA_TYPE")
    private String dataType;

    /**
     * RULE=ALL;RULE=MY_ORG;RULE=MY_DEPT;RULE=PARTY;
     */
    @TableField("BIND_RULE")
    private String bindRule;

    /**
     * 域ID集合
     */
    @TableField("AREA_ID")
    private String areaId;

    /**
     * 绑定对象ID
     */
    @TableField("BIND_ID")
    private String bindId;

    /**
     * R=角色
            U=用户
     */
    @TableField("BIND_TYPE")
    private String bindType;

    /**
     * 是否级联
     */
    @TableField("IS_CASCADE")
    private Integer isCascade;


    public String getDrbId() {
        return drbId;
    }

    public JbdpDataResourceBind setDrbId(String drbId) {
        this.drbId = drbId;
        return this;
    }

    public String getApp() {
        return app;
    }

    public JbdpDataResourceBind setApp(String app) {
        this.app = app;
        return this;
    }

    public String getDataType() {
        return dataType;
    }

    public JbdpDataResourceBind setDataType(String dataType) {
        this.dataType = dataType;
        return this;
    }

    public String getBindRule() {
        return bindRule;
    }

    public JbdpDataResourceBind setBindRule(String bindRule) {
        this.bindRule = bindRule;
        return this;
    }

    public String getAreaId() {
        return areaId;
    }

    public JbdpDataResourceBind setAreaId(String areaId) {
        this.areaId = areaId;
        return this;
    }

    public String getBindId() {
        return bindId;
    }

    public JbdpDataResourceBind setBindId(String bindId) {
        this.bindId = bindId;
        return this;
    }

    public String getBindType() {
        return bindType;
    }

    public JbdpDataResourceBind setBindType(String bindType) {
        this.bindType = bindType;
        return this;
    }

    public Integer getIsCascade() {
        return isCascade;
    }

    public JbdpDataResourceBind setIsCascade(Integer isCascade) {
        this.isCascade = isCascade;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.drbId;
    }

    @Override
    public String toString() {
        return "JbdpDataResourceBind{" +
        "drbId=" + drbId +
        ", app=" + app +
        ", dataType=" + dataType +
        ", bindRule=" + bindRule +
        ", areaId=" + areaId +
        ", bindId=" + bindId +
        ", bindType=" + bindType +
        ", isCascade=" + isCascade +
        "}";
    }
}
